export default {
  // Common
  common: {
    ok: 'OK',
    cancel: 'Cancel',
    save: 'Save',
    delete: 'Delete',
    edit: 'Edit',
    close: 'Close',
    refresh: 'Refresh',
    search: 'Search',
    loading: 'Loading...',
    success: 'Success',
    error: 'Error',
    warning: 'Warning',
    info: 'Info',
    confirm: 'Confirm',
    yes: 'Yes',
    no: 'No',
    run: 'Run',
    stop: 'Stop',
    line: 'Line',
    column: 'Column',
    seconds: 's',
    minutes: 'm',
    hours: 'h'
  },

  // Status bar
  status: {
    ready: 'Ready',
    running: 'Running',
    completed: 'Completed',
    waiting: 'Waiting',
    error: 'Error'
  },

  // Log levels
  logLevel: {
    info: 'Info',
    warn: 'Warn',
    error: 'Error',
    success: 'Success'
  },

  // Menu and navigation
  menu: {
    file: 'File',
    edit: 'Edit',
    view: 'View',
    run: 'Run',
    settings: 'Settings',
    help: 'Help'
  },

  // Toolbar
  toolbar: {
    runAutomation: 'Run SIMION Automation',
    stopAutomation: 'Stop SIMION Automation',
    showLog: 'Show Log',
    hideLog: 'Hide Log'
  },

  // File operations
  file: {
    newFile: 'New File',
    newFolder: 'New Folder',
    openFile: 'Open File',
    saveFile: 'Save File',
    closeFile: 'Close File',
    deleteFile: 'Delete File',
    renameFile: 'Rename File',
    copyPath: 'Copy Path',
    copyRelativePath: 'Copy Relative Path',
    revealInExplorer: 'Reveal in Explorer',
    addToWorkspace: 'Add Folder to Workspace',
    removeFromWorkspace: 'Remove Folder from Workspace',
    findInFolder: 'Find in Folder',
    pasteFile: 'Paste File'
  },

  // Project
  project: {
    noProject: 'No Project Open',
    closeProject: 'Close Project',
    projectFiles: 'Project Files',
    openFolder: 'Open Folder',
    folderSettings: 'Open Folder Settings'
  },

  // Editor
  editor: {
    selectFile: 'Please select a file to edit',
    luaPlaceholder: '-- Write Lua code here\n-- Supports adjustable parameter configuration\n\nadjustable _rfvolt = 5000\nadjustable _rfvolt2 = 2000\nadjustable _frequency = 1200000',
    textPlaceholder: '# Write text content here',
    defaultPlaceholder: 'Edit file content here'
  },

  // Log panel
  logPanel: {
    title: 'Log',
    clear: 'Clear',
    autoScroll: 'Enable Auto Scroll',
    disableAutoScroll: 'Disable Auto Scroll',
    noLogs: 'No log information'
  },

  // Settings panel
  settings: {
    title: 'Settings',
    language: 'Language Settings',
    languageDesc: 'Set the display language of the application',
    editorSettings: 'Editor Settings',
    editorSettingsDesc: 'Configure font, formatting, etc.',
    simionPath: 'SIMION Path',
    simionPathDesc: 'Select simion.exe executable file',
    projectPath: 'Project Path',
    projectPathDesc: 'Set the project file path',
    iobPath: 'IOB File Path',
    iobPathDesc: 'Set the IOB file path',
    luaPath: 'Lua File Path',
    luaPathDesc: 'Set the Lua file path',
    scanSettings: 'Scan Settings',
    scanType: 'Scan Type',
    frequencyScan: 'Frequency Scan',
    voltageScan: 'Voltage Scan',
    frequencyParams: 'Frequency Scan Parameters',
    voltageParams: 'Voltage Scan Parameters',
    startValue: 'Start Value',
    stopValue: 'Stop Value',
    stepValue: 'Step Value',
    scanLength: 'Scan Length',
    open: 'Open',
    selectFile: 'Select File',
    selectFolder: 'Select Folder'
  },

  // Placeholder texts
  placeholders: {
    startValue: 'Start Value',
    stopValue: 'Stop Value',
    stepValue: 'Step Value',
    selectFile: 'Select file...',
    selectFolder: 'Select folder...',
    enterValue: 'Enter value'
  },

  // Messages
  messages: {
    // Success messages
    projectOpened: 'Project opened',
    projectClosed: 'Project closed',
    fileSaved: 'File saved',
    fileCreated: 'File created',
    fileDeleted: 'File deleted',
    fileRenamed: 'File renamed',
    automationStarted: 'SIMION automation task started',
    automationStopped: 'SIMION automation stopped',
    logsCleared: 'Logs cleared',
    settingsSaved: 'Settings saved',
    filesRefreshed: 'File list refreshed',
    simionPathSet: 'SIMION path set',
    languageUpdated: 'Language settings updated',
    
             // Error messages
             openProjectFailed: 'Failed to open project',
             closeProjectFailed: 'Failed to close project',
             saveFileFailed: 'Failed to save file',
             noFileToSave: 'No file to save',
             undoSuccess: 'Undo successful',
             nothingToUndo: 'Nothing to undo',
    createFileFailed: 'Failed to create file',
    deleteFileFailed: 'Failed to delete file',
    renameFileFailed: 'Failed to rename file',
    loadProjectFilesFailed: 'Failed to load project files',
    runAutomationFailed: 'Failed to run',
    stopAutomationFailed: 'Failed to stop',
    checkServerStatusFailed: 'Failed to check Python server status',
    getPythonLogsFailed: 'Failed to get Python logs',
    checkTaskStatusFailed: 'Failed to check task status',
    fileSelectionFailed: 'File selection failed or cancelled',
    fileSelectionError: 'File selection error',
    openFileFailed: 'Failed to open file',
    cannotAccessFolder: 'Cannot access folder',
    loadFolderContentFailed: 'Failed to load folder content',
    
    // Warning messages
    fileExists: 'File with the same name already exists',
    noProjectFiles: 'No IOB or Lua files found in project directory',
    onlyIobFiles: 'Only IOB files found',
    onlyLuaFiles: 'Only Lua files found',
    noMatchedPairs: 'IOB and Lua files found, but no matching pairs',
    multipleMatchedPairs: 'Found {count} matching file pairs, using the first one',
    serverRestarting: 'Python server is restarting, please wait a few seconds and try again',
    serverRestartFailed: 'Failed to restart Python server',
    stopCommandSent: 'Stop command sent',
    stopFunctionUnavailable: 'Stop function unavailable, will force reset state',
    fileSelectionUnavailable: 'File selection function is only available in Electron environment',
    
    // Info messages
    serverStatusNormal: 'Python server status is normal',
    taskRunning: 'Detected task is running, stopping current task first',
    taskCompleted: 'Detected task completion, stopping log polling',
    serverKeptRunning: 'Python server keeps running',
    statusReset: 'State has been reset to ready',
    taskExecutionError: 'Task execution error detected, please check detailed error information',
    finalLogsFetching: 'Failed to get final logs',
    newFolderFeature: 'New folder feature',
    addToWorkspaceFeature: 'Add folder to workspace',
    openFolderSettingsFeature: 'Open folder settings',
    removeFromWorkspaceFeature: 'Remove folder from workspace',
    findInFolderFeature: 'Find in folder',
    pasteFileFeature: 'Paste file',
    statusCheckError: 'Status check error, continuing to monitor task',
    restartingPythonServer: 'Attempting to restart Python server...',
    cannotCheckServerStatus: 'Cannot check Python server status, please restart the application',
    setSimionPath: 'Please set SIMION path first',
    setStartValue: 'Please set the start value for frequency/voltage scan',
    setStopValue: 'Please set the stop value for frequency/voltage scan',
    invalidNumbers: 'Start and stop values for frequency/voltage scan must be valid numbers',
    stepRequired: 'Step must be set when start and stop values are different',
    stepMustBePositive: 'Step must be greater than 0',
    startLessThanStop: 'Start value must be less than stop value',
    noMatchedFiles: 'No matching IOB and Lua files found, please check project directory',
    copyRelativePathHint: 'Please press Ctrl+Shift+C to copy relative path',
    automationDebugInfo: '=== SIMION Automation Debug Info ===',
    automationCompleted: 'Task completed - Success: {success}, Failed: {failed}',
    serverClosed: 'Python server closed, task completed',
    taskCompletedStatus: 'Task completed, stopping log polling'
  },

  // Language options
  languages: {
    'zh-CN': '中文',
    'ja-JP': '日本語',
    'en-US': 'English'
  },

  // Welcome page
  welcome: {
    title: 'SIMION Desktop Automation Tool',
    subtitle: 'Professional SIMION simulation parameter configuration and automation tool',
    createProject: {
      title: 'Create New Project',
      description: 'Create a new SIMION simulation project with complete project structure',
      button: 'Create Project'
    },
    openProject: {
      title: 'Open Existing Project',
      description: 'Open existing project directory',
      button: 'Open Project'
    },
    recentProjects: 'Recent Projects',
    version: 'Version 1.0.0 | Supports SIMION 8.0+',
    dialog: {
      createProject: {
        title: 'Create New Project',
        name: 'Project Name',
        namePlaceholder: 'Enter project name',
        path: 'Project Path',
        pathPlaceholder: 'Select project save path',
        selectPath: 'Select Path',
        description: 'Project Description',
        descriptionPlaceholder: 'Enter project description (optional)',
        template: 'Project Template',
        basicTemplate: 'Basic Template',
        advancedTemplate: 'Advanced Template',
        customTemplate: 'Custom Template',
        cancel: 'Cancel',
        confirm: 'Create Project',
        creating: 'Creating...'
      },
      openProject: {
        title: 'Open Project',
        description: 'Please select a SIMION project directory containing the following files:',
        features: {
          0: 'Support for various file types',
          1: 'Automatic project structure recognition',
          2: 'Flexible file management'
        },
        path: 'Project Path',
        pathPlaceholder: 'Select project directory',
        selectDirectory: 'Select Directory',
        cancel: 'Cancel',
        confirm: 'Open Project',
        opening: 'Opening...'
      }
    },
    validation: {
      nameRequired: 'Please enter project name',
      nameLength: 'Project name length should be 1-50 characters',
      pathRequired: 'Please select project path',
      nameAvailable: 'Project name is available',
      nameExists: 'Project already exists'
    },
    messages: {
      projectCreated: 'Project created successfully',
      projectOpened: 'Project opened successfully',
      projectDeleted: 'Project deleted',
      projectExists: 'Project already exists, please select a different project name or path',
      directoryExists: 'Target directory already exists, please select a different project name',
      createFailed: 'Failed to create project',
      openFailed: 'Failed to open project',
      deleteFailed: 'Failed to delete project',
      selectPathFailed: 'Failed to select path',
      selectDirectoryFailed: 'Failed to select directory',
      fileSelectionUnavailable: 'File selection feature is only available in Electron environment',
      creatingStructure: 'Creating project structure...',
      structureCreated: 'Project structure created successfully',
      structureCreateFailed: 'Failed to create project structure',
      projectCreateUnavailable: 'Project creation feature is only available in Electron environment'
    },
    confirm: {
      deleteProject: 'Are you sure to delete project "{name}"?\nNote: This will only remove it from the project list, not delete the actual files.',
      deleteTitle: 'Confirm Delete'
    }
  }
}
